<%= content_for :title, '分类 - 设置' %>

<div class="uk-grid">
  <%= render 'tab_head' %>

  <div class="uk-width-medium-3-4">
    <div class="uk-clearfix">
      <%= link_to content_tag(:i, nil, class: 'uk-icon-plus'), new_admin_category_path, class: 'uk-button uk-float-right', remote: true %>
    </div>
    <table class="uk-table uk-table-striped">
      <thead>
        <tr>
          <th>分类名</th>
          <th>路径</th>
          <th>文章数量</th>
          <th>#</th>
        </tr>
      </thead>
      <tbody>
      <%= render partial: 'admin/categories/category_table_row', collection: @categories, as: :category %>
      </tbody>
    </table>
  </div>
</div>